<%= render :partial => "admin/menu" %>

<div class="listing">
  <h1> Messages Log </h1>
  <% @messages.each do |msg| %>
    <p>
      User: <%= msg.user.email %><br />
      Message ID: <%= msg.message_id %><br />
      Sent from: <%= msg.input.name %><br/>
      Sent to: <%= msg.output.name %><br/>
      Message: <%= msg.long_message %><br />
      <i><%= time_ago_in_words(msg.timestamp) %> ago</i> / <%= msg.timestamp %>
    </p>
  <% end %>
</div>